﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>@ViewBag.Title - 软件工程课程设计</title>
	<script src="~/Scripts/countUp.js" type="text/javascript"></script>
	@Styles.Render("~/Content/css")
	@Scripts.Render("~/bundles/modernizr")
</head>
@using Model
<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				@Html.ActionLink("江西省政府采购网中标数据采集工具", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					@if (Session["user"] != null && ((User)Session["user"]).permission > 1)
					{
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">网址管理<span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li>@Html.ActionLink("文件导入", "ImportFile", "UrlManage")</li>
								<li>@Html.ActionLink("手动编辑", "EditUrl", "UrlManage")</li>
							</ul>
						</li>
					}
					@if (Session["user"] != null && ((User)Session["user"]).permission > 1)
					{
						<li>@Html.ActionLink("数据采集", "Collect", "DataCollect")</li>
					}
					@if (Session["user"] != null && ((User)Session["user"]).permission > 0)
					{
						<li>@Html.ActionLink("数据查询/分析", "Analysis", "DataAnalysis")</li>
					}
				</ul>
				<ul class="nav navbar-nav navbar-right">
					@if (Session["user"] == null)
					{
						<li>@Html.ActionLink("登录", "LogIn", "Home")</li>
						<li>@Html.ActionLink("注册", "Register", "Home")</li>
					}
					else
					{
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">@(((User)Session["user"]).name)<span class="caret"></span></a>
							<ul class="dropdown-menu">
								@if (((User)Session["user"]).permission > 1)
								{
									<li>@Html.ActionLink("用户管理", "UserManage", "Home")</li>
								}
								<li>@Html.ActionLink("注销", "LogOff", "Home")</li>
							</ul>
						</li>
					}
				</ul>
			</div>
		</div>
	</div>
	<div class="container body-content">
		@RenderBody()
		<hr />
		<footer>
			<p>&copy; @DateTime.Now.Year - 我的 ASP.NET 应用程序</p>
		</footer>
	</div>

	@Scripts.Render("~/bundles/jquery")
	@Scripts.Render("~/bundles/bootstrap")
	@RenderSection("scripts", required: false)
</body>
</html>
